/*
 * XML Type:  SignonInfoList
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.SignonInfoList
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML SignonInfoList(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class SignonInfoListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.SignonInfoList
{
    
    public SignonInfoListImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SIGNONINFO$0 = 
        new javax.xml.namespace.QName("", "SIGNONINFO");
    
    
    /**
     * Gets array of all "SIGNONINFO" elements
     */
    public net.ofx.types.x2003.x04.SignonInfo[] getSIGNONINFOArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(SIGNONINFO$0, targetList);
            net.ofx.types.x2003.x04.SignonInfo[] result = new net.ofx.types.x2003.x04.SignonInfo[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "SIGNONINFO" element
     */
    public net.ofx.types.x2003.x04.SignonInfo getSIGNONINFOArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonInfo target = null;
            target = (net.ofx.types.x2003.x04.SignonInfo)get_store().find_element_user(SIGNONINFO$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "SIGNONINFO" element
     */
    public int sizeOfSIGNONINFOArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SIGNONINFO$0);
        }
    }
    
    /**
     * Sets array of all "SIGNONINFO" element
     */
    public void setSIGNONINFOArray(net.ofx.types.x2003.x04.SignonInfo[] signoninfoArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(signoninfoArray, SIGNONINFO$0);
        }
    }
    
    /**
     * Sets ith "SIGNONINFO" element
     */
    public void setSIGNONINFOArray(int i, net.ofx.types.x2003.x04.SignonInfo signoninfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonInfo target = null;
            target = (net.ofx.types.x2003.x04.SignonInfo)get_store().find_element_user(SIGNONINFO$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(signoninfo);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "SIGNONINFO" element
     */
    public net.ofx.types.x2003.x04.SignonInfo insertNewSIGNONINFO(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonInfo target = null;
            target = (net.ofx.types.x2003.x04.SignonInfo)get_store().insert_element_user(SIGNONINFO$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "SIGNONINFO" element
     */
    public net.ofx.types.x2003.x04.SignonInfo addNewSIGNONINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonInfo target = null;
            target = (net.ofx.types.x2003.x04.SignonInfo)get_store().add_element_user(SIGNONINFO$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "SIGNONINFO" element
     */
    public void removeSIGNONINFO(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SIGNONINFO$0, i);
        }
    }
}
